package com.whoimi.admin.rest.req;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.whoimi.common.jdbc.SqlOperate;

import java.util.List;

public class UserPageQuery {

    @SqlOperate(operate = SqlOperate.OperateEnum.LIKE)
    private String username;
    @SqlOperate(operate = SqlOperate.OperateEnum.LIKE)
    private String nickname;
    @SqlOperate()
    private String mobile;
    @SqlOperate()
    private boolean status = true;
    @SqlOperate(dbFieldName = "dept_id")
    private Long deptId;

    private List<Long> roleIds;
    @SqlOperate(operate = SqlOperate.OperateEnum.BETWEEN,dbFieldName = "create_time")
    private List<String> createTime;


    /**
     * 是否超级管理员
     */
    @JsonIgnore
    private Boolean isRoot;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public boolean getStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    public List<String> getCreateTime() {
        return createTime;
    }

    public void setCreateTime(List<String> createTime) {
        this.createTime = createTime;
    }

    public Boolean getRoot() {
        return isRoot;
    }

    public void setRoot(Boolean root) {
        isRoot = root;
    }

    @Override
    public String toString() {
        return "UserPageQuery{" +
                "username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", mobile='" + mobile + '\'' +
                ", status=" + status +
                ", deptId=" + deptId +
                ", roleIds=" + roleIds +
                ", createTime=" + createTime +
                ", isRoot=" + isRoot +
                '}';
    }
}